
//
//  TaskDetailCell.m
//  PASystem
//
//  Created by 刘沿 on 16/9/23.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "TaskDetailCell.h"
#import "UILabel+time.h"

@implementation TaskDetailCell

+ (instancetype)WithTaskDetailCell{

    return [[[NSBundle mainBundle] loadNibNamed:@"TaskDetailCell" owner:nil options:nil] lastObject];
}

- (void)setModel:(TaskDetailModel *)model{
    _model = model;

    self.USERNAME.text = model.USERNAME;
    self.OFFICE.text = model.OFFICE;
    
    NSString *str = [UILabel withTimeStr:model.CREATETIME];
    
    self.CREATETIME.text = str;
}



@end
